using System.Collections.Generic;
using CYZHAPI.Entity;
using CYZHAPI.IRepository;
using CYZHAPI.IRepository.IService;

namespace CYZHAPI.Repository.Service
{
    public class ModisService : IModisService
    {
        private IModisRep _ModisRep;
        public ModisService(IModisRep modisRep){
            _ModisRep =modisRep;
        }
        public bool Delete(long key)
        {
            return _ModisRep.delete(key);
        }

        public List<ModisModel> GetList(string sWhere)
        {
            return _ModisRep.GetList(sWhere);
        }
        public List<ModisResultsModel> GetMosisResultsList(string sWhere)
        {
            return _ModisRep.GetMosisResultsList(sWhere);
        }
        public List<ModisModel> GetListUninXZQH(string sWhere){
             return _ModisRep.GetListUninXZQH(sWhere);
         }

        public bool insert(string TableName, List<ModisModel> itemModel)
        {
            return _ModisRep.insert(TableName, itemModel);
        }

        public bool update(long key, ModisModel itemModel)
        {
            return _ModisRep.update(key,itemModel);
        }
    }
}